<?php
	require_once('db_connect.php');

	$thumb_id = $_GET['tID'];
	$joiner_id = $_GET['joiner_id'];
	
	$query = "INSERT INTO `join` (jID, jThumbID) VALUES ('$joiner_id', $thumb_id)";
	mysqli_query($conn, $query);
	mysqli_close($conn);

	echo "<script>
					alert('엄지에 성공적으로 붙었습니다');
					history.go(-1);
			</script>";
?>